<h1>
	主页
</h1>
<h2>
	Welcome ,
	<?php 
	if($_COOKIE['check']!="")
	{
		echo $_COOKIE['nickname'];
	}
	else{ 
			echo("<!DOCTYPE html><html><head><meta charset=\"utf-8\"></head><script type=\"text/javascript\">window.location.href='http://'+document.domain;</script>");	
	} ?>.
	<?php
	$h=date('g');if ($h<12) echo 'Good morning';else if ($h<17) echo 'Good afternoon';else echo 'Good evening';
	 ?>!
</h2>
